import request from '@/utils/request'

export function getTreeList() {
  return request({
    url: '/team/tree',
    method: 'get'
  })
}

export function getTeamDetail(teamId) {
  return request({
    url: '/team/' + teamId,
    method: 'get'
  })
}

export function createTeam(data) {
  return request({
    url: '/team',
    method: 'post',
    data
  })
}
export function deleteTeam(teamId) {
  return request({
    url: '/team/' + teamId,
    method: 'delete'
  })
}
export function updataTeam(data) {
  return request({
    url: '/team',
    method: 'put',
    data
  })
}
